﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlInNghiepVuNhapChiPhi.ascx.cs" Inherits="UserControl_ControlInNghiepVuNhapChiPhi" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register src="~/UserControl/ControlReportViewer.ascx" tagname="ReportViewerControl" tagprefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<script type="text/javascript">
    function pageLoad() {


        //Lấy ngày workingday
        $.ajax({
            type: "POST",
            url: '<%=ResolveUrl("~/Webservice/WebServiceDRM.asmx/GetWorkingDay")%>',
            data: "{}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (data) {
                $("#<%= txtFromDate.ClientID %>").datePicker(
		           {
		               clickInput: true,
		               startDate: data.d
		           });
            }
		   });

        $("#<%= imgBtnAdd.ClientID %>").click(function () {
            $.blockUI({ css: {
                border: 'none',
                padding: '15px',
                backgroundColor: '#000',
                '-webkit-border-radius': '10px',
                '-moz-border-radius': '10px',
                opacity: .5,
                color: '#fff'
            }
            });
    });

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            $.unblockUI();
        }

    }
</script>


<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>     
    <div class="direct_container_right_titletop">
                    Bảng kê chi phí ngày chưa khóa sổ
    </div>
    <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" BackColor="#CCFFFF"
            Font-Names="Arial" Width="100%">
        <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Chọn ngày" TabIndex="0">
            <ContentTemplate>  
    <!-- Button chuc nang-->
                <div class="direct_container_main">
                    <table>
                        <tr>
                            <td>Từ ngày</td>
                            <td>  
                                <asp:TextBox ID="txtFromDate" runat="server"></asp:TextBox> 
                            </td>
                            <td>
                                <asp:ImageButton ID="imgBtnAdd" onclick="imgBtnAdd_Click" ToolTip="Lấy dữ liệu"  ImageUrl="~/Images/Document.png" Width="32px" Height="32px" runat="server" />
                               
                            </td>
                           </tr>
                        </table>
                    </div>
                </ContentTemplate>
            </cc1:TabPanel>
        <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Chi tiết in" TabIndex="1">
                <ContentTemplate>
                    <uc1:ReportViewerControl ID="ControlReportViewer1" runat="server" />
                    
                </ContentTemplate>
            </cc1:TabPanel>                
        </cc1:TabContainer>
   
    </ContentTemplate>            
</asp:UpdatePanel>